#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :get_proxy.py
# @Time      :2023/7/6 
# @Author    :CL
# @email     :1037654919@qq.com


def get_proxy():
    ipdata = [{"ip": "49.51.189.174", "port": 10338}, {"ip": "49.51.189.174", "port": 10348},
              {"ip": "49.51.189.174", "port": 10363}, {"ip": "49.51.189.174", "port": 10305},
              {"ip": "49.51.189.174", "port": 10351}, {"ip": "49.51.189.174", "port": 10324},
              {"ip": "49.51.189.174", "port": 10373}, {"ip": "49.51.189.174", "port": 10342},
              {"ip": "49.51.189.174", "port": 10282}, {"ip": "49.51.189.174", "port": 10354},
              {"ip": "49.51.189.174", "port": 10299}, {"ip": "49.51.189.174", "port": 10322},
              {"ip": "49.51.189.174", "port": 10362}, {"ip": "49.51.189.174", "port": 10285},
              {"ip": "49.51.189.174", "port": 10372}, {"ip": "49.51.189.174", "port": 10323},
              {"ip": "49.51.189.174", "port": 10284}, {"ip": "49.51.189.174", "port": 10371},
              {"ip": "49.51.189.174", "port": 10367}, {"ip": "49.51.189.174", "port": 10283},
              {"ip": "49.51.189.174", "port": 10317}, {"ip": "49.51.189.174", "port": 10297},
              {"ip": "49.51.189.174", "port": 10308}, {"ip": "49.51.189.174", "port": 10347},
              {"ip": "49.51.189.174", "port": 10369}, {"ip": "49.51.189.174", "port": 10318},
              {"ip": "49.51.189.174", "port": 10370}, {"ip": "49.51.189.174", "port": 10327},
              {"ip": "49.51.189.174", "port": 10376}, {"ip": "49.51.189.174", "port": 10309},
              {"ip": "49.51.189.174", "port": 10316}, {"ip": "49.51.189.174", "port": 10357},
              {"ip": "49.51.189.174", "port": 10320}, {"ip": "49.51.189.174", "port": 10337},
              {"ip": "49.51.189.174", "port": 10340}, {"ip": "49.51.189.174", "port": 10349},
              {"ip": "49.51.189.174", "port": 10343}, {"ip": "49.51.189.174", "port": 10374},
              {"ip": "49.51.189.174", "port": 10304}, {"ip": "49.51.189.174", "port": 10341},
              {"ip": "49.51.189.174", "port": 10375}, {"ip": "49.51.189.174", "port": 10378},
              {"ip": "49.51.189.174", "port": 10364}, {"ip": "49.51.189.174", "port": 10325},
              {"ip": "49.51.189.174", "port": 10336}, {"ip": "49.51.189.174", "port": 10330},
              {"ip": "49.51.189.174", "port": 10306}, {"ip": "49.51.189.174", "port": 10346},
              {"ip": "49.51.189.174", "port": 10368}, {"ip": "49.51.189.174", "port": 10294},
              {"ip": "49.51.189.174", "port": 10286}, {"ip": "49.51.189.174", "port": 10353},
              {"ip": "49.51.189.174", "port": 10345}, {"ip": "49.51.189.174", "port": 10366},
              {"ip": "49.51.189.174", "port": 10296}, {"ip": "49.51.189.174", "port": 10293},
              {"ip": "49.51.189.174", "port": 10314}, {"ip": "49.51.189.174", "port": 10289},
              {"ip": "49.51.189.174", "port": 10365}, {"ip": "49.51.189.174", "port": 10290},
              {"ip": "49.51.189.174", "port": 10319}, {"ip": "49.51.189.174", "port": 10310},
              {"ip": "49.51.189.174", "port": 10301}, {"ip": "49.51.189.174", "port": 10333},
              {"ip": "49.51.189.174", "port": 10302}, {"ip": "49.51.189.174", "port": 10339},
              {"ip": "49.51.189.174", "port": 10332}, {"ip": "49.51.189.174", "port": 10311},
              {"ip": "49.51.189.174", "port": 10329}, {"ip": "49.51.189.174", "port": 10344},
              {"ip": "49.51.189.174", "port": 10287}, {"ip": "49.51.189.174", "port": 10300},
              {"ip": "49.51.189.174", "port": 10279}, {"ip": "49.51.189.174", "port": 10361},
              {"ip": "49.51.189.174", "port": 10298}, {"ip": "49.51.189.174", "port": 10312},
              {"ip": "49.51.189.174", "port": 10321}, {"ip": "49.51.189.174", "port": 10292},
              {"ip": "49.51.189.174", "port": 10328}, {"ip": "49.51.189.174", "port": 10326},
              {"ip": "49.51.189.174", "port": 10331}, {"ip": "49.51.189.174", "port": 10358},
              {"ip": "49.51.189.174", "port": 10359}, {"ip": "49.51.189.174", "port": 10295},
              {"ip": "49.51.189.174", "port": 10334}, {"ip": "49.51.189.174", "port": 10291},
              {"ip": "49.51.189.174", "port": 10281}, {"ip": "49.51.189.174", "port": 10313},
              {"ip": "49.51.189.174", "port": 10307}, {"ip": "49.51.189.174", "port": 10356},
              {"ip": "49.51.189.174", "port": 10352}, {"ip": "49.51.189.174", "port": 10377},
              {"ip": "49.51.189.174", "port": 10360}, {"ip": "49.51.189.174", "port": 10350},
              {"ip": "49.51.189.174", "port": 10288}, {"ip": "49.51.189.174", "port": 10280},
              {"ip": "49.51.189.174", "port": 10355}, {"ip": "49.51.189.174", "port": 10315},
              {"ip": "49.51.189.174", "port": 10303}, {"ip": "49.51.189.174", "port": 10335}]
    import random
    data = random.choice(ipdata)
    proxies={
        'http':str(data['ip'])+':'+str(data['port']),
        'https': str(data['ip']) + ':' + str(data['port'])

    }
    return proxies

if __name__=="__main__":
    print(get_proxy())